package org.gd.beancp;

import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonProperty;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-09-30 13:35
 */
@JsonAutoDetect
class Address {

    @JsonProperty
    private String country;
    @JsonProperty
    private String city;
    @JsonProperty
    private String street;
    @JsonProperty
    private Integer build;
    @JsonProperty
    private int apartment;

    String getCountry() {
        return country;
    }

    void setCountry(String country) {
        this.country = country;
    }

    String getCity() {
        return city;
    }

    void setCity(String city) {
        this.city = city;
    }

    String getStreet() {
        return street;
    }

    void setStreet(String street) {
        this.street = street;
    }

    Integer getBuild() {
        return build;
    }

    void setBuild(Integer build) {
        this.build = build;
    }

    int getApartment() {
        return apartment;
    }

    void setApartment(int apartment) {
        this.apartment = apartment;
    }

    @Override
    public String toString() {
        return "Address{" +
                "country='" + country + '\'' +
                ", city='" + city + '\'' +
                ", street='" + street + '\'' +
                ", build=" + build +
                ", apartment=" + apartment +
                '}';
    }
}
